<?php

require_once dirname(__FILE__).'/../lib/branchGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/branchGeneratorHelper.class.php';

/**
 * branch actions.
 *
 * @package    Amawal Invest
 * @subpackage branch
 * @author     Ameen Shoman<amin.shoman@gmail.com>
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class branchActions extends autoBranchActions
{
	public function executeCreate(sfWebRequest $req){
		parent::executeCreate($req);
				/*@var $branch Branch*/
		/*
		$branch = $this->form->getObject();
		$g_user = new sfGuardUser();

		$g_user->getProfile()->setBranchId($branch->getId());
		$g_user->setUsername($branch->getBranchName());
		$g_user->setPassword($branch->getBranchName());
		$g_user->setIsSuperAdmin(0);
		$g_user->setIsActive(1);
	
		$g_user->addGroupByName('head_branch');
		$g_user->save();*/
		
	}
}
